package models

import "time"

type Addr struct {
	Provice string
	City    string
	Address string
}

type Teacher struct {
	ID     int64  `gpa:"pk"`
	Name   string `gpa:"varchar(50)"`
	Gender int
	Addr   Addr
}

type Class struct {
	ID        int64  `gpa:"pk autoincr"`
	Name      string `gpa:"varchar(50)"`
	Year      string `gpa:"varchar(4)"`
	TeacherID int64
}

type Student struct {
	ID       int64  `gpa:"pk not-null"`
	Name     string `gpa:"varchar(50)"`
	Gender   int
	ClassID  int64
	BirthDay time.Time
}
